package com.homework18;

import java.io.File;
import java.util.Scanner;

public class demo01 {
    public static void main(String[] args) {
        String s = new Scanner(System.in).nextLine();
        File file = new File(s);
        deleteFile(file);
    }

    private static void deleteFile(File file) {
        File[] files = file.listFiles();
        for (File file1 : files) {
            if(file1.isFile()){
                file1.delete();
            }else {
                deleteFile(file1);
            }
        }
        file.delete();
    }
}
